<script type="text/javascript" src="chart/swfobject.js"></script>
<script type="text/javascript" src="js/bug.report.js"></script>
<style type="text/css">
#flash_report{
width:1100px;
text-align:center;
}
.flash_box{
border: 1px solid #C5D7EF;
float:left;
width:500px;
height:400px;
}

.box{
margin-top:6px;
}
#text_count{
text-align:center;
margin-bottom:20px;
}
#text_count span{
color:#266298;
}
</style>
<?php echo includeFile('/Common/Bug-menu.html')?>
<table width="100%">
  <tr>
	  <td width="100"><?php echo L('project')?>:</td>
	  <td>
		<select id="projectid" name="projectid">
			<option value="0"><?php echo L('select_project')?></option>
		</select>
		<select id="verid" name="verid">
			<option value="0"><?php echo L('all_ver')?></option>
		</select>
		<select id="moduleid" name="moduleid">
			<option value="0"><?php echo L('all_module')?></option>
		</select>
	  </td>
  </tr>
  <tr>
	  <td><?php echo L('count_type')?>:</td>
	  <td>
		  <input type="radio" name="counttype" value="1" checked="checked"/><?php echo L('bugtype')?>
		  <input type="radio" name="counttype" value="2" /><?php echo L('to_user')?>
		  <input type="radio" name="counttype" value="3" /><?php echo L('creater')?>
		  <input type="radio" name="counttype" value="4" /><?php echo L('bug_stat')?>
		  <input type="radio" name="counttype" value="5" /><?php echo L('severity')?>
		  <input type="radio" name="counttype" value="6" /><?php echo L('priority')?>
	  </td>
  </tr>
  <tr>
	  <td></td>
	  <td>
	  	<button type="button" id="countBtn"><?php echo L('look_count')?></button>
	  </td>
  </tr>
</table>

<?php if($this->reportCount):?>
	<div id="text_count" class="box">
		<div><h3><?php echo $this->countName?> (<?php echo $this->reportCount?>)</h3></div>
		<div>
			<?php foreach($this->list as $row):?>
			<span><?php echo $row['title']?>:</span>(<?php echo $row['count']?>) 
			<?php endforeach;?>
		</div>
	</div>

	<div id="flash_report" class="box">
	<center>
		<div class="flash_box"> 
			<div id="flash_chart_bar"></div>
		</div>
		<div class="flash_box" style="margin-left:10px;">
			<div id="flash_chart_pie"></div>
		</div>
	</center>	
	</div>
<?php endif;?>
<div class="clear"></div>
<!-- 下拉列表<?php echo L('module')?> -->
<textarea id="options_tpl" style="display:none;">
{for row in list}
<option value="${row.key}">${row.value}</option>
{/for}
</textarea>
